// 用户类型定义
export interface User {
  id: string;
  username: string;
  email: string;
  avatar?: string;
  role: UserRole;
  permissions: string[];
  createdAt: string;
  updatedAt: string;
}

// 用户角色枚举
export enum UserRole {
  ADMIN = 'admin',
  OPERATOR = 'operator',
  VIEWER = 'viewer',
}

// 导航项类型定义
export interface NavItem {
  id: string;
  title: string;
  description: string;
  url: string;
  icon?: string;
  category: string;
  tags: string[];
  creator: string;
  viewCount: number;
  isPublic: boolean;
  createdAt: string;
  updatedAt: string;
}

// 分页响应类型
export interface PaginatedResponse<T> {
  data: T[];
  total: number;
  page: number;
  pageSize: number;
}

// API 响应类型
export interface ApiResponse<T> {
  code: number;
  message: string;
  data: T;
}
